-- GENERATED SPELL FOR [Dire Raven] --


function spell0_21042(pUnit, Event) --@Screech,n/a--
pUnit:FullCastSpellOnTarget(31273,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21042', 8254, 1)
end

function Sorts_21042(pUnit, Event)
local choix_sorts_21042 = math.random(0, 0)
if choix_sorts_21042 == 0 then
pUnit:RegisterEvent('spell0_21042', 1, 1)
end
end

function mob21042_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21042', math.random(1500, 3000), 1)
end

function mob21042_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21042_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21042_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21042, 1, 'mob21042_Action')
RegisterUnitEvent(21042, 2, 'mob21042_Leave')
RegisterUnitEvent(21042, 3, 'mob21042_Kill')
RegisterUnitEvent(21042, 4, 'mob21042_Die')
